package com.bd.rj.backstage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bd.rj.common.entity.Post;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 白世俊
 * @since 2025-01-03
 */
public interface IPostService extends IService<Post> {

    IPage<Post> getPostByPage(int pageNum,int pageSize, QueryWrapper<Post> queryWrapper);

    String deletePost(Long id);

    String addPost(Post post);

    String updatePost(Post post);

    Map<String, Object> getWeeklyPost();
    List<Map<String, Object>> getPostTypePer();

    void insertPostRecord(Map<String, Object> postRecord);

    IPage<Map> getEnterpriseByConditionAndPage(int pagenum, int pageSize, Post post);

    int getPostCount(Long uid);
    List<Map<String, Object>> getPostPercentage(Long uid);

    Map<String, Object> queryId(Long id);
}
